import { _decorator, Component, Node, Sprite } from 'cc';
import { aa } from '../frame/FrameCore';
const { ccclass, property } = _decorator;

@ccclass('InfoCtrl')
export class InfoCtrl extends Component {
    @property(Node)
    view:Node
    @property(Sprite)
    colors:Sprite[]=[]
    
    show(){
        this.view.active = true;
        this.colors[0].color = aa.global.color0;
        this.colors[1].color = aa.global.color1;

    }
    hide(){
        this.view.active = false;
    }
}

